package com.swsc.solarverse.model.base;

/**
 * @Author chencl
 * @Date 2022/8/4 10:38
 * @Version 1.0
 * @Description
 */
@lombok.Data
public class BasePageQueryReqVO extends BaseQueryReqVO {
//    @io.swagger.annotations.ApiModelProperty(value = "第几页", hidden = true)
    private Integer pageNo;
//    @io.swagger.annotations.ApiModelProperty(value = "每页条数", hidden = true)
    private Integer pageSize;
//    @io.swagger.annotations.ApiModelProperty(value = "排序: ASC 升序, DESC 降序", hidden = true)
    private String sortBy;

//    @io.swagger.annotations.ApiModelProperty(value = "排序字段",hidden = true)
    private String sortField;
//    @io.swagger.annotations.ApiModelProperty(value = "排除异常", hidden = true)
    private Boolean excludeEx;

    public Boolean getExcludeEx() {
        return null == excludeEx ? true : excludeEx;
    }

    public void set(Integer organNo, Integer pageSize, Integer pageNo){
        setOrganNo(organNo);
        setPageSize(pageSize);
        setPageNo(pageNo);
    }
}
